package serveur;

import java.io.*;
import java.net.*;

public class Serveur {
	public static ServerSocket ss = null;
	public static Thread t;

	public static void main(String[] args) {

		try {
			ss = new ServerSocket(60000);
			System.out.println("Le serveur est a l'ecoute du port "
					+ ss.getLocalPort());

			t = new Thread(new Accepter_connexion(ss));
			t.start();

		} catch (IOException e) {
			System.err.println("Le port " + ss.getLocalPort()
					+ " est deja utilise !");
		}
	}
}